package com.training.java.core.homework07;

public class LaptopImmutable {

	// Variables
	private final String serialNumber = "LENOVO-2420106";
	private boolean powerOn;
	private double memory;
	private double diskCapacity;

	private final double maxMemory = 4;
	private final double maxDiskCapacity = 100;
	
	// Methods
	LaptopImmutable() {
		this.powerOn = false; // instantiate with a default of false
		this.memory = maxMemory;
		this.diskCapacity = maxDiskCapacity;
		
		System.out.println("A Laptop object, " + serialNumber + " is instantiated with no power, memory = " + this.memory + " GB" +
				" disk capacity = " + this.diskCapacity + " GB" + " location = " + ".");
	}

	// Getters
	public boolean isPowerOn() {
		return this.powerOn;
	}

	public double getMemory() {
		return this.memory;
	}

	public double getDiskCapacity() {
		return this.diskCapacity;
	}

	public double getMaxMemory() {
		return this.maxMemory;
	}

	public double getMaxDiskCapacity() {
		return this.maxDiskCapacity;
	}
}
